package com.hundsun.yr.universal.p2p.config;

import android.os.Environment;

import java.math.BigDecimal;


/**
 * @version V1.0
 * @Title: Config.java
 * @Description: 全局配置文件
 * @date 2015-10-15 上午9:03:34
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com
 * @replace author:
 * @replace date:
 */
public class Config {
    /**
     * 一个月所含天数
     */
    public static final int M_DAYS = 30;
    /**
     * 金额单位
     */
    public static final BigDecimal wan = new BigDecimal(10000);
    /**
     * 是否已经加载引导页
     */
    public static String IF_GOGUIDE = "if_goGuide";
    /**
     * 版本名称
     */
    public static String VERSION_NAME = "VERSION_NAME";
    /**
     * 是否设置手势密码
     */
    public static String IF_GESTURE = "ifGesture";

    /**
     * 是否设置指纹密码
     */
    public static String IF_FINGERPRINT = "ifFingerprint";
    /**
     * 手势密码
     */
    public static String GESTURE = "gesture";
    /**
     * 实名页面--真实姓名
     */
    public static String REALNAME = "config_realname";
    /**
     * 实名页面--身份证
     */
    public static String CERT_NO = "config_cert_no";

    /**
     * 图片缓存路径
     */
    public static final class ImagePaths {
        public static final String BASE_PATH = Environment.getExternalStorageDirectory().getAbsolutePath();
        public static final String IMAGE_LOADER_CACHE_PATH = "/p2p/Images/";
    }

    /**
     * SharedPreferences 文件路径
     */
    public static final class SPPath {
        /**
         * 用户登录信息路径，token保存位置
         */
        public static final String file_userLoginedInfo = "userInfo";
        /**
         * 用户基础配置信息路径,config接口信息保存在这里了
         */
        public static final String file_configInfo = "p2p_config";
        /**
         * 用户临时信息路径
         */
        public static final String file_temporary_Info = "temporary Info";
    }


    /**
     * 默认密钥
     **/
    public static final String ENCRYPT_KEY_1 = "hundsun1";
    public static final String ENCRYPT_KEY_2 = "hundsun3";
    public static final String ENCRYPT_KEY_3 = "hundsun2";

    /**
     * 短信发送验证码类型
     */
    public static final class SmsType {
        /**
         * 注册
         */
        public static final String REGISTER = "REGISTER";
        /**
         * 绑卡
         */
        public static final String BINDCARD = "BINDCARD";
        /**
         * 充值
         */
        public static final String RECHARGE = "RECHARGE";
        /**
         * 邮箱绑定
         */
        public static final String EMAILBIND = "EMAILBIND";
        /**
         * 邮箱修改
         */
        public static final String EMAILMODIFY = "EMAILMODIFY";
        /**
         * 手机号修改
         */
        public static final String MOBILEMODIFY = "MOBILEMODIFY";
        /**
         * 修改密码
         */
        public static final String PWDMODIFY = "PWDMODIFY";
        /**
         * 站内信
         */
        public static final String INSIDE_LETTER = "INSIDE_LETTER";
        /**
         * /**
         * 忘记密码
         */
        public static final String FORGET_LOGINPWD = "FORGET_LOGINPWD";
        /**
         * 登录
         */
        public static final String USER_LOGIN = "USER_LOGIN";

        /**
         * 实名
         */
        public static final String REAL_NAME_AUTH = "REAL_NAME_AUTH";
        /**
         * 注册成功
         */
        public static final String REGISTER_SUCCESS = "REGISTER_SUCCESS";
        /**
         * 联合登录
         */
        public static final String USER_JOINTLOGIN = "USER_JOINTLOGIN";
        /**
         * 解绑
         */
        public static final String UNBINDCARD = "UNBINDCARD";

        /**
         * 邮箱认证
         */
        public static final String BIND_EMAIL = "BIND_EMAIL";
        /**
         * 修改邮箱
         */
        public static final String MODIFY_EMAIL = "MODIFY_EMAIL";
        /**
         * 开户
         */
        public static final String OPEN_ACCOUNT = "OPEN_ACCOUNT";
        /**
         * 支付密码修改
         */
        public static final String MODIFY_PAYPWD = "MODIFY_PAYPWD";
        /**
         * 冻结账户
         */
        public static final String FREEZING_USER = "FREEZING_USER";
        /**
         * 解冻账户
         */
        public static final String THAWING_USER = "THAWING_USER";
        /**
         * 签到
         */
        public static final String SIGN_IN = "SIGN_IN";
        /**
         * 机构用户注册
         */
        public static final String ORG_USER_REGISTER = "ORG_USER_REGISTER";
        /**
         * 设置用户帐号名
         */
        public static final String SETUP_USER_ACCOUNT_NAME = "SETUP_USER_ACCOUNT_NAME";
        /**
         * 修改用户头像
         */
        public static final String UPLOAD_AVATAR = "UPLOAD_AVATAR";
        /**
         * 提现
         */
        public static final String WITHDRAW = "WITHDRAW";
        /**
         * 网关充值
         */
        public static final String RECHAREGE_GATEWAY = "RECHAREGE_GATEWAY";
        /**
         * 对公提现
         */
        public static final String ORG_WITHDRAW = "ORG_WITHDRAW";
        /**
         * 还款充值流水
         */
        public static final String REPAY_SERIAL = "REPAY_SERIAL";
        /**
         * 注册红包
         */
        public static final String REGISTER_RED_PACKET = "REGISTER_RED_PACKET";
        /**
         * 推荐红包
         */
        public static final String REFREE_RED_PACKET = "REFREE_RED_PACKET";
    }


}